Klasse InfoData

java.lang.Object
com.inet.pdfc.generator.message.InfoData
Alle implementierten Schnittstellen:
Chunk, Serializable

@JsonData public class InfoData extends Object implements Chunk
information about a specific page comparison
Siehe auch:
  • Konstruktordetails

    • InfoData

      public InfoData(PdfSource f1, PdfSource f2, int firstTotalPages, int secondTotalPages, IProfile comparisonConfig)
      default constructor with necessary dependencies
      Parameter:
      f1 - file of the first PDF being compared
      f2 - file of the second PDF being compared
      firstTotalPages - total number of pages in the first PDF, use -1 for uninitialized
      secondTotalPages - total number of pages in the second PDF, use -1 for uninitialized
      comparisonConfig - the configuration used to create the current results, if null a DefaultProfile will be used furthermore used as a hint for the garbage collector.
      Seit:
      4.0
    • InfoData

      public InfoData(PdfSource f1, PdfSource f2, IProfile comparisonConfig)
      creates the instance for not yet parsed files. In that case the page count is undefined and will be set to -1
      Parameter:
      f1 - file of the first PDF being compared
      f2 - file of the second PDF being compared
      comparisonConfig - the configuration used to create the current results, if null a DefaultProfile will be used
      Seit:
      4.0
  • Methodendetails

    • getSecondFile

      public PdfSource getSecondFile()
      returns the file of the first PDF being compared
      Gibt zurück:
      the file of the first PDF being compared, can be null if a file is missing in batch mode!
      Seit:
      4.0
    • getFirstFile

      public PdfSource getFirstFile()
      returns the file of the secondPDF being compared
      Gibt zurück:
      the file of the second PDF being compared, can be null if a file is missing in batch mode!
      Seit:
      4.0
    • getFirstPageCount

      public int getFirstPageCount()
      returns the total number of pages in the first PDF
      Gibt zurück:
      the total number of pages in the first PDF, -1 if uninitialized
      Seit:
      5.0
    • getSecondPageCount

      public int getSecondPageCount()
      returns the total number of pages in the second PDF
      Gibt zurück:
      the total number of pages in the secondPDF, -1 if uninitialized
      Seit:
      5.0
    • getProfile

      public IProfile getProfile()
      Returns the profile which was used for this comparison run. The returned instance is a copy of the profile used by the comparer.
      Gibt zurück:
      the compare profile, never null
      Seit:
      4.0
    • getType

      public Chunk.ChunkType getType()
      Returns the type of this chunk
      Angegeben von:
      getType in Schnittstelle Chunk
      Gibt zurück:
      the type of this chunk